<template>
  <div class="classroom-layout">
    <classroomHeader />
    <Menu v-if="!isHome" />
    <section class="classroom-main" :class="{'not-home': !isHome}">
      <router-view />
    </section>
  </div>
</template>

<script>
import classroomHeader from './components/classroomHeader'
import Menu from './components/classroomLeftmenu'

export default {
  name: 'OnlineClassroom',
  components: { classroomHeader, Menu },
  computed: {
    isHome() {
      return this.$route.path == '/onlineClassroom/home'
    }
  }
}
</script>

<style lang="scss" scoped>
.classroom-layout {
  position: relative;
  width: 100%;
  min-height: 100%;
  background: #f8f9ff;
  padding-top: 80px;
  box-sizing: border-box;
  overflow-x: auto;
  // .classroom-body {
  //   display: flex;
  // }
  .not-home {
    margin-left: 278px;
  }
  .classroom-main {
    min-height: 100%;
  }
}
</style>
<style lang="scss">
.classroom-container {
  min-height: 100%;
  padding: 20px;
  h3 {
    font-family: "Source Han Sans CN Medium";
    font-weight: 600;
    font-size: 24px;
    text-align: left;
    color: #00080f;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-bottom: 20px;
  }
}
</style>
